from django.forms import ModelForm
import autocomplete_light
from models import Institucion

class InstitucionForm(ModelForm):
    class Meta:
        widgets = autocomplete_light.get_widgets_dict(Institucion)
        model = Institucion
        exclude = ('creador')
        
    def __init__(self, *args, **kw):
        super(InstitucionForm, self).__init__(*args, **kw)
        self.fields['lineas_de_investigacion'].help_text = ''
        self.fields['dato'].help_text = '' 
    
    